package com.initialize.service.api.system.resttemplate;

import com.initialize.common.mybatis.plus.entity.User;
import com.initialize.service.api.system.entity.UserInfo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Component
public interface IUserRestTemplate {

    /**
     * 获取用户信息
     *
     * @return
     */
    User login(@RequestBody String login);


    /**
     * 查找用户 通过用户名称
     * @param username
     * @return
     */
    UserInfo findByUsername(@RequestBody String username);
}
